package sde.actor.hello;
import sde.actor.*;

class HelloWorld extends Actor{
	public static class Print extends Message{} //classe di messaggi
	public HelloWorld(){}
	public void handler( Message m ){
		if( m instanceof Print ){
		        System.out.println("Hello World! I'm an actor!");
		}
	}
}//HelloWorld

public class Hello{
	public static void main( String [] args ){
		ControlMachine cm=new Concurrent();
		Actor hW=new HelloWorld();
		hW.send( new HelloWorld.Print() );
		cm.controller();
	}//main
}//Hello

